// Resource declarations for Resources plugin
// This is a bit ugly, we'll find a way to make this better in future
def appCtx = org.codehaus.groovy.grails.commons.ApplicationHolder.application.mainContext
def plugin = appCtx.pluginManager.getGrailsPlugin('jquery-qtip')
def qTipVersion = plugin.instance.JQUERY_QTIP_VERSION

modules = {

    'jquery-qtip' {
        dependsOn 'jquery'
        
        resource id:'js', url:[plugin: 'jquery-qtip', dir:'js/jquery-qtip', file:"jquery.qtip-${qTipVersion}.min.js"],
            nominify: true, disposition: 'head'
    }

    'jquery-qtip-dev' {
        dependsOn 'jquery'

        resource id:'js', url:[plugin: 'jquery-qtip', dir:'js/jquery-qtip', file:"jquery.qtip-${qTipVersion}.js"]
    }
}